﻿using System;
using MedicService.Domain.Print.Template;
using MedicService.Server.Factory;

namespace MedicService.Domain.Print
{
    public class PrintSertificate : PrintEntity{
        private PrintSertificate() { }

        public PrintSertificate(PrintTemplate<PrintSertificate> template, Doctor doctor) {
            Init(template);
            doctor = new DoctorFactory().Load(doctor.Id);
            Replace(template, doctor);
        }
    }
}